<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var json1 = '{"id":1,"name":"xl","age":21,"hobby":["java","美女","游戏"]}';
        console.log(JSON.parse(json1));
        var json2 = '{"id":2,"name":"开发部","employee":{"id":1,"name":"djj","age":20,"hobby":["化妆","游戏","学习"]}}'
        console.log(JSON.parse(json2));
        var jsObj1 = {id:2,name:"zgq",age:18,hobby:["撩妹","打架","运动"]};
        console.log(JSON.stringify(jsObj1));
    </script>
</head>
<body>

</body>
</html>